import { Entity, PrimaryGeneratedColumn, Column, PrimaryColumn } from "typeorm"
import { GameConfig } from "../../src/config/GameConfig"

@Entity("t_accounts")
export class AccountEntity {

    @PrimaryColumn()
    account: string = ""
    @Column()
    password: string = ""
    @Column()
    token: string = ""
    @Column()
    account_type: number = GameConfig.Account_Type.Account
    @Column()
    status: number = GameConfig.Status_Type.Normal
    @Column()
    ip: string = ""
    @Column()
    nick_name: string = ""
    @Column()
    channel: number = GameConfig.Channel_Type.Web
    @Column()
    os: string = ""
    @Column()
    phone_type: string = ""
    @Column()
    bundle_name: string = ""
    @Column()
    system_version: string = ""
    @Column("datetime", { nullable: true })
    create_time: string = ""
    @Column("datetime", { nullable: true })
    last_login_time: string = ""
    @Column()
    phone: string = ""
    @Column()
    sex: number = GameConfig.Sex_Type.Mail
    @Column()
    headimgurl: string = ""
    @Column()
    udid: string = ""





}